import { defHttp } from '/@/utils/http/axios'

import { ClientVO } from './model/clientModel'
import { BasicFetchResult, BasicPageParams,BasicQueryModel } from '/@/api/model/baseModel'

enum Api {
  pageClient = '/client/page',
}

export const pageClient = (data: BasicPageParams<BasicQueryModel>) => {
  return defHttp.post<BasicFetchResult<ClientVO>>(
    { url: Api.pageClient, data },
    { errorMessageMode: 'none' },
  )
}